|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.components.ButtonPanelLayout
public class ButtonPanelLayout
The ButtonPanelLayout class is a layout manager
that lays out a container's components in one row/column.
The container is divided into equal-sized rectangles, which
width and height can be specified.
| Field Summary | |
|---|---|
static int |
HORIZONTAL
specifies that container's components are layd out in a row. |
static int |
NEGATIVE
specifies that container's components are layd out from bottom/right to top/left. |
static int |
POSITIVE
specifies that container's components are layd out from top/left to bottom/right. |
static int |
VERTICAL
specifies that container's components are layd out in a column. |
| Constructor Summary | |
|---|---|
ButtonPanelLayout(int width,
int height,
int type,
int direction)
Creates an instance of ButtonPanelLayout
with specified width and height of components and
layout order. |
|
ButtonPanelLayout(int width,
int height,
int space,
int type,
int direction)
Creates an instance of ButtonPanelLayout
with specified width and height of components,
space between them and layout order. |
|
ButtonPanelLayout(int width,
int height,
int vspace,
int hspace,
int type,
int direction)
Creates an instance of ButtonPanelLayout
with specified width and height of components,
space between them and layout order. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Required by LayoutManager, not in use. |
void |
layoutContainer(java.awt.Container parent)
Required by LayoutManager. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Required by LayoutManager, not in use. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Required by LayoutManager, not in use. |
void |
removeLayoutComponent(java.awt.Component comp)
Required by LayoutManager, not in use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HORIZONTAL
public static final int VERTICAL
public static final int POSITIVE
public static final int NEGATIVE
| Constructor Detail |
|---|
public ButtonPanelLayout(int width,
int height,
int type,
int direction)
ButtonPanelLayout
with specified width and height of components and
layout order.
width - width of componetsheight - height of componentstype - the way the components are layd out: HORIZONTAL, VERTICALdirection - direction of components: POSITIVE, NEGATIVE
public ButtonPanelLayout(int width,
int height,
int space,
int type,
int direction)
ButtonPanelLayout
with specified width and height of components,
space between them and layout order.
width - width of componetsheight - height of componentsspace - space between componentstype - the way the components are layd out: HORIZONTAL, VERTICALdirection - direction of components: POSITIVE, NEGATIVE
public ButtonPanelLayout(int width,
int height,
int vspace,
int hspace,
int type,
int direction)
ButtonPanelLayout
with specified width and height of components,
space between them and layout order.
width - width of componetsheight - height of componentsvspace - vertical space between componentshspace - horizontal space between componentstype - the way the components are layd out: HORIZONTAL, VERTICALdirection - direction of components: POSITIVE, NEGATIVE| Method Detail |
|---|
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - doesn't do anythingcomp - doesn't do anythingpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - doesn't do anythingpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - doesn't do anything
nullpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerparent - doesn't do anything
nullpublic void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerparent - container which components will be layd out
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||